#include <func.h>
int main()
{
    int shmid;
    shmid=shmget(IPC_PRIVATE,4096,IPC_CREAT|0600);
    ERROR_CHECK(shmid,-1,"shmget");
    sleep(5);
     int ret=shmctl(shmid,IPC_RMID,NULL);
        ERROR_CHECK(ret,-1,"shmctl")
    return 0;
}